import { ReactElement } from 'react';

export interface IndicatorProps {
  activate: ReactElement<any>;
  deactivate: ReactElement<any>;
  release: ReactElement<any>;
  finish: ReactElement<any>;
}

export interface SimpleListViewProps {
  dataSource: any[];
  renderRow: (row: any, index: number) => ReactElement | null;
  refreshing?: boolean;
  loading?: boolean;
  onRefresh?: (params?: any) => void;
  loadMore?: () => void;
  loadingMore?: boolean;
  hasMore?: boolean;
  emptyText?: string;
  style?: object;
  className?: string;
}
